import re

if __name__ == '__main__':
    text = "Make this **bold**. That **content show in bold** too!"

    pattern = r"(\*{2}(.*?)\*{2})"

    # results = re.findall(pattern=pattern, string=text)
    #
    # for result in results:
    #     print(result)

    # 注意：如果不指定次数的话，默认会替换所有的匹配结果
    # 参数 count 用来指定替换的次数
    result = re.sub(pattern=pattern, repl=r"<b>\2</b>", string=text, count=1)
    print(result)
